package com.uzykj.modules.sys.service;

import com.uzykj.modules.sys.entity.MyClass;
import com.uzykj.modules.sys.mapper.MyClassMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.uzykj.core.persistence.Page;
import com.uzykj.core.service.BaseService;

@Service
@Transactional(readOnly = true)
public class MyClassService  extends BaseService{
	@Autowired
	private MyClassMapper myClassMapper;
	
	public Page<MyClass> findClassByDepartName(Page<MyClass> page, String name){
		
		MyClass class1 = new MyClass();
		class1.setPage(page);
		// 执行分页查询
		page.setList(myClassMapper.findClassByDepartName(name));
		return page;
		
	}
}
